{%include file="m.index.header.tpl.php"%}

  <!--主要内容开始-->
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
{%include file="mail/mail.left.tpl.php"%}
        <!-- /.col -->
          <div class="col-md-9">
          <div class="box box-primary">
            <div class="box-header with-border">
              <h3 class="box-title">读邮件</h3>

              <div class="box-tools pull-right">
				{%if $mail_last !=""%}
                <a href="index.php?a=mail.info&mail_id={%$mail_last%}" class="btn btn-box-tool" data-toggle="tooltip" title="上一篇"><i class="fa fa-chevron-left"></i></a>
				{%/if%}
				{%if $mail_next !=""%}
                <a href="index.php?a=mail.info&mail_id={%$mail_next%}" class="btn btn-box-tool" data-toggle="tooltip" title="下一篇"><i class="fa fa-chevron-right"></i></a>
				{%/if%}
              </div>

            </div>
            <!-- /.box-header -->
            <div class="box-body no-padding">
              <div class="mailbox-read-info">
                <h3>{%$mail_data.mail_title%}</h3>
                <h5>来自: {%$mail_data.mail_fromname%}
                  <span class="mailbox-read-time pull-right">{%$mail_data.create_time%}</span></h5>
              </div>
              <!-- /.mailbox-read-info -->
              <div class="mailbox-controls with-border text-center">
                <div class="btn-group">
				{%if $is_del=='1'%}
                  <!--<a href="index.php?a=mail.del&mail_id={%$mail_data.mail_id%}" class="btn btn-default btn-sm" data-toggle="tooltip" data-container="body" title="删除">
				
                    <i class="fa fa-trash-o"></i></a>
                  <a href="index.php?a=mail.add&type=replay&mail_id={%$mail_data.mail_id%}"class="btn btn-default btn-sm" data-toggle="tooltip" data-container="body" title="回复">
                    <i class="fa fa-reply"></i></a>
                  <a href="index.php?a=mail.add&type=forward&mail_id={%$mail_data.mail_id%}" class="btn btn-default btn-sm" data-toggle="tooltip" data-container="body" title="转发">

                    <i class="fa fa-share"></i></a>-->
				{%/if%}
                </div>
                <!-- /.btn-group -->
              </div>
              <!-- /.mailbox-controls -->
              <div class="mailbox-read-message">
                <p>{%$mail_data.mail_content%}</p>
              </div>
            </div>
            <!-- /.box-body -->
			{%if $mail_data.mail_file!=""%}
            <div class="box-footer">
              <ul class="mailbox-attachments clearfix">
				{%foreach from=$mail_data.mail_file key=key item=value%}
                <li>

                  <div class="mailbox-attachment-info">
                    <a href="index.php?a=mail.file&mail_id={%$mail_id%}&fname={%$value.fname%}" class="mailbox-attachment-name"><i class="fa fa-paperclip"></i> {%$value.fname%}</a>
                        <span class="mailbox-attachment-size">
                          {%$value.fsize%} KB
                          <a href="index.php?a=mail.file&mail_id={%$mail_id%}&fname={%$value.fname%}" class="btn btn-default btn-xs pull-right"><i class="fa fa-cloud-download"></i></a>
                        </span>
                  </div>
                </li>
				{%/foreach%}
              </ul>
            </div>
			{%/if%}
            <!-- /.box-footer -->
            <div class="box-footer">
				{%if $is_del=='1'%}
              <div class="pull-right">
                <a href="index.php?a=mail.add&type=replay&mail_id={%$mail_data.mail_id%}" class="btn btn-default"><i class="fa fa-reply"></i> 回复</a>
                <a href="index.php?a=mail.add&type=forward&mail_id={%$mail_data.mail_id%}" class="btn btn-default"><i class="fa fa-share"></i> 转发</a>
              </div>

              <a href="index.php?a=mail.del&mail_id={%$mail_data.mail_id%}" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a>
				{%/if%}
            </div>
            <!-- /.box-footer -->
          </div>
          <!-- /. box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
{%include file="m.index.footer.tpl.php"%}

<script src="static/js/icheck.min.js"></script><!--邮箱-->

